const mongoose = require('mongoose');
const { ObjectId } = mongoose.Schema;

/**
 * Export model definition object.
 */
module.exports = {
  versionId: ObjectId,
  functionId: ObjectId,
  fromFuncId: ObjectId,
  fromFuncMangledId: String,
  fromFuncFileId: ObjectId,
  toFuncId: { type: ObjectId, index: true },
  toFuncName: String,
  toFuncMangledId: String,
  toFuncFileId: ObjectId,
  enableStub: Boolean,
  toFuncFileUpdate: Boolean,
  toFuncPointer: Boolean,
  toFuncCtor: Boolean,
  testCases: [ObjectId],
};
